home *** CD-ROM | disk | FTP | other *** search
- -- card: 2986 from stack: in
- -- bmap block id: 9462
- -- flags: 4000
- -- background id: 2784
- -- name: Title
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=423 top=76 right=109 bottom=457
- -- title width / last selected line: 0
- -- icon id / first selected line: 27009 / 27009
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: First file
- ----- HyperTalk script -----
- on mouseUp
- go to card "Specimen"
- end mouseUp
-
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=380 top=138 right=166 bottom=470
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Load data
- ----- HyperTalk script -----
- on mouseUp
- ask "Where is the list of file information?"
- if it is empty then exit mouseUp -- cancelled
- put it into infile -- save filename
- open file infile -- open it
- push this card -- save location of title card
- go to card "Specimen" -- go to specimen card
- show msg -- give some feedback
- set lockscreen to true -- don't waste time with screen updates
- repeat while true -- read the whole input file
- read from file infile until return -- one line at a time
- if it is empty then -- until we run out of lines
- close file infile -- then close the file
- set lockscreen to false
- hide msg
- pop card -- and restore the screen
- exit mouseUp
- end if
- put it into rec -- for each line read
- doMenu "New Card" -- create a new card
- put item 1 of rec into msg -- note where we are in processing
- put item 1 of rec into field 1 -- and parse the comma-separated
- put item 2 of rec into field 2 -- input fields into the card
- put item 3 of rec into field 3
- put item 4 of rec into field 4
- put item 5 of rec into field 5
- put item 6 of rec into field 6
- put item 7 of rec into field 7
- put item 8 of rec into field 8
- end repeat
- end mouseUp
-
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=23 top=272 right=296 bottom=110
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Delete data
- ----- HyperTalk script -----
- on mouseUp
- Answer "Do you really want to delete all your stuff?" with "Cancel" or "OK"
- if it is not "OK" then exit MouseUp
- push this card -- remember title card location
- go to card "Specimen" -- go to specimen card
- go next card -- go to first card to be deleted
- repeat while the number of this card is not 1
- doMenu "Delete Card" -- and trash everything until we get back
- end repeat -- to the first card
- pop card -- restore location
- end mouseUp
-
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=382 top=183 right=213 bottom=470
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Sort files
- ----- HyperTalk script -----
- on mouseUp
- sort by field 1
- end mouseUp
-
-
-
- -- part 7 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=362 top=29 right=44 bottom=497
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=354 top=271 right=297 bottom=473
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Documentation
- ----- HyperTalk script -----
- on mouseUp
- go to card "Documentation"
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=387 top=76 right=109 bottom=421
- -- title width / last selected line: 0
- -- icon id / first selected line: 9301 / 9301
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Last file
- ----- HyperTalk script -----
- on mouseUp
- go to last card
- end mouseUp
-
-
-
- -- part contents for card part 7
- ----- text -----
-